</head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<?php
include_once('../DataProvider.php');
session_start();
if (DataProvider::islogin($_SESSION)==0) {
	echo 'Khong Thanh Cong';
	return;
}
//$u=$_SESSION['username'];
//$op=$_SESSION['password'];
$op=$_REQUEST['oldpassword'];
$np=$_REQUEST['newpassword'];
$p=$_SESSION["password"];
if (intval($op)==intval($p)) {
	if(DataProvider::doimatkhau($_SESSION['username'],$op,$np)==0)
		echo 'Loi';
}
?>
<head>
	<meta http-equiv='refresh' content='0;URL= thoat.php'>
</head>